package com.oocl.scan.producer;

import com.oocl.scan.jdt.parser.SoapConfigParser;
import java.io.File;

public class SoapConfigProducer implements Producer<File> {

  SoapConfigParser parser = new SoapConfigParser();

  @Override
  public void produce(File file) {
    if (!file.exists()) {
      return;
    }
    if ("soaProxyConfigurations.xml.vpp".equals(file.getName())) {
      parserSoapConfig(file.getAbsolutePath());
    }
  }

  private void parserSoapConfig(String filePath) {
    parser.parserSoapConfig(filePath);
  }
}
